<%@page import="dktc_ws.Tintuc"%>
<%@page import="java.util.LinkedList"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="DTO.sinhvien"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<style>
    div#list-news
    {
        border-radius: 6px;
            margin-top: 3px;
            margin-left: 3px;
            margin-right: 3px;
            border: 1px #039 double;
           min-height: 700px;
            margin-bottom: 5px;
    }
    div#news-item
    {       
        padding: 5px;
        margin: 3px auto;
        border-radius:3px;
    }
    div#news-title
    {
        color: blue;
    }
    div#link-news
    {
        
    }
    div#news-short-description a
    {      
        text-decoration: none;
    }
    div#text-news
    {
        width: 100%;
        height: 40px;
        background: url('images/cat_back.gif') repeat-x;
        text-align: center;
        padding-top: 5px;
        font-weight: bolder;
        font-size: 20px;
        color: white;
        border-radius:5px;
    }
</style>

<div id="list-news">
<div id="text-news">THÔNG BÁO</div>
    <% 
    DataWS dt=new DataWS();
List<dktc_ws.Tintuc> tt=dt.laydanhsachtintuc(-1);
for(int i=0;i<tt.size();i++)
       {
    Tintuc item=tt.get(i);
    %>
    <div id="news-item" >
        <div id="news-title">
            &raquo;<%=item.getTuade() %> (<%=item.getNgaydang() %>)
        </div>
        <div id="news-short-description">
            <%=item.getMotangan() %>....
            <a href="/DKTC/frontend/index2.jsp?page=news_detail&idnews=<%=item.getMatintuc() %>">Chi tiết</a>
        </div>       
    </div>
<%
}
 %> 
 <div id="line-news" style="width: 90%;margin: 10px auto;"><hr style="margin: 0 auto;"></hr></div>

</div>